package org.boot.wxipad.support.bean;

import lombok.Getter;
import lombok.Setter;
import org.boot.wxipad.common.util.json.WxIpadGsonBuilder;

import java.io.Serializable;

/**
 * @author liyuncong
 * @version 1.0
 * @file WxIpadBaseResp
 * @brief 微信IPAD响应基础父类
 * @details 微信IPAD响应基础父类
 * @date 2024-08-05
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2024-08-05               liyuncong          Created
 */

@Getter
@Setter
public class WxIpadBaseResp implements Serializable {

    protected Integer status;

    protected String msg;

    protected Boolean success;

    protected String traceId;

    public static WxIpadBaseResp fromJson(String json) {
        return WxIpadGsonBuilder.create().fromJson(json, WxIpadBaseResp.class);
    }
}
